package com.max.sportmanage.controller;

import com.max.sportmanage.common.Result;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: sport-manage-java
 * @description:
 * @author: max-qaq
 * @create: 2021-10-17 17:12
 **/
@RestController
public class TestController {

    @PreAuthorize("hasAnyRole('ADMIN')")
    @RequestMapping("/test")
    public Result<String> test(){
        return Result.SUCCESS("你好！");
    }
}
